package com.hjn.springboot.service.impl;

import com.hjn.springboot.mapper.StudentMapper;
import com.hjn.springboot.model.Student;
import com.hjn.springboot.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: huaijn
 * @create: 2022/3/27 21:20
 * @description: todo
 **/
@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    StudentMapper studentMapper;

    @Override
    public Student queryStudentById(Integer id) {
        return studentMapper.selectByPrimaryKey(id);
    }
}
